package com.migo.service.impl;

import com.migo.dao.SmsCountryDao;
import com.migo.entity.SmsCountryEntity;
import com.migo.service.SmsCountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("smsCountryService")
public class SmsCountryServiceImpl implements SmsCountryService {
	@Autowired
	private SmsCountryDao smsCountryDao;
	
	@Override
	public SmsCountryEntity queryObject(String enName){
		return smsCountryDao.queryObject(enName);
	}
	
	@Override
	public List<SmsCountryEntity> queryList(Map<String, Object> map){
		return smsCountryDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return smsCountryDao.queryTotal(map);
	}
	
	@Override
	public void save(SmsCountryEntity smsCountry){
		smsCountryDao.save(smsCountry);
	}
	
	@Override
	public void update(SmsCountryEntity smsCountry){
		smsCountryDao.update(smsCountry);
	}
	
	@Override
	public void delete(String enName){
		smsCountryDao.delete(enName);
	}
	
	@Override
	public void deleteBatch(String[] enNames){
		smsCountryDao.deleteBatch(enNames);
	}
	
}
